﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Edutainment
{
	/// <summary>
	/// Interaktionslogik für MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
        public Grid rootGrid { get { return LayoutRoot; } private set { LayoutRoot = value; } }

		public MainWindow()
		{
			this.InitializeComponent();
            MainMenu d = new MainMenu();
            this.mainContent.Children.Add(d);
			// Fügen Sie Code, der bei der Objekterstellung erforderlich ist, unter diesem Punkt ein.
		}

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            AppManager mngr = ((App)App.Current).getAppManager();
            mngr.storageController.serializeState();
        }
	}
}